package com.yuren.codecrushlearn.Q5100;

import com.yuren.codecrushlearn.entities.ListNode;

/**
 * Created with Intellij IDEA.
 * Description:
 * 倒序遍历列表
 * @author Sleepy Code Tom
 * @date 2025-03-30 23:40
 */
public class Q5126 {
    public void reversePrint(ListNode head) {
        if (head == null) return;
        reversePrint(head.next);
        head.print();
    }
}
